package chapter_11_facade.z_coffee.facade;

import chapter_11_facade.z_coffee.subsystem.CoffeeBean;
import chapter_11_facade.z_coffee.subsystem.CoffeeMachine;
import chapter_11_facade.z_coffee.subsystem.Water;

/**
 * Created by CharloYao on 2017/3/24.
 */
public class EmployeeFacade {

    private Water water;
    private CoffeeBean coffeeBean;
    private CoffeeMachine coffeeCup;

    public void makeCoffee(){
        water = new Water("山泉水");
        coffeeBean = new CoffeeBean("古巴咖啡豆");
        coffeeCup = new CoffeeMachine();
        coffeeCup.putWater(water);
        coffeeCup.putCoffeeBean(coffeeBean);
        coffeeCup.make();
    }
}
